package com.maven.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.maven.bean.Department;
import com.maven.dao.DepartmentMapper;

@Service("departmentServiceImpl")
public class DepartmentServiceImpl implements DepartmentService{

	@Autowired
	private DepartmentMapper departMapper;
	
	@Override
	public List<Department> getDepts() {
        List<Department> list = departMapper.selectByExample(null);
		return list;
	}

}
